
package com.intretech.umsin.system.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.intretech.umsin.datasource.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;


 /**
 * @version V1.0
 * 用户与岗位关联:sys_user_post 对应实体类.
 * @ClassName: SysUserPost
 * @Description: 用户与岗位关联:sys_user_post 对应实体类.
 * @author: 李启联
 * @date:   2022-8-16 16:25:08
 * @Copyright: Copyright (c) 2022
 */
@TableName("`sys_user_post`")
public class SysUserPostEntity extends BaseEntity {
   // 用户ID
   @TableField(value = "user_id")
   private Long userId;
   // 岗位ID
   @TableField(value = "post_id")
   private Long postId;
   // 修改人
   @TableField(value = "updater")
   private String updater;
   // 创建时间
   @TableField(value = "create_date")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
   private LocalDateTime createDate;
   // 修改时间
   @TableField(value = "update_date")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
   private LocalDateTime updateDate;

   public Long getUserId(){
        return this.userId;
   }
   public void setUserId(Long userId){
        this.userId = userId;
   }
   public Long getPostId(){
        return this.postId;
   }
   public void setPostId(Long postId){
        this.postId = postId;
   }
   public String getUpdater(){
        return this.updater;
   }
   public void setUpdater(String updater){
        this.updater = updater;
   }
   public LocalDateTime getCreateDate(){
        return this.createDate;
   }
   public void setCreateDate(LocalDateTime createDate){
        this.createDate = createDate;
   }
   public LocalDateTime getUpdateDate(){
        return this.updateDate;
   }
   public void setUpdateDate(LocalDateTime updateDate){
        this.updateDate = updateDate;
   }

  public SysUserPostEntity(){
  }


  @Override
  public String toString(){
  return " SysUserPost ["
    +" userId = " +userId +" ,"
    +" postId = " +postId +" ,"
    +" updater = " +updater +" ,"
    +" createDate = " +createDate +" ,"
    +" updateDate = " +updateDate
  +" ]";
  }
}